package freshmanspecial.mredrock.com.welcomefreshman.Service;

import freshmanspecial.mredrock.com.welcomefreshman.Bean.FailRatioBean;
import freshmanspecial.mredrock.com.welcomefreshman.Bean.SexRatioBean;
import freshmanspecial.mredrock.com.welcomefreshman.Bean.WorkRatioBean;
import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by Administrator on 2017/8/8 0008.
 */

public interface DataService {
    //请求男女比例
    @FormUrlEncoded
    @POST("test/apiRatio.php")
    Observable<SexRatioBean> getSexRatio(@Field("RequestType")String requestType);
    //请求挂科率
    @FormUrlEncoded
    @POST("test/apiRatio.php")
    Observable<FailRatioBean> getFailRatio(@Field("RequestType")String requestType);
    //请求就业率
    @FormUrlEncoded
    @POST("test/apiRatio.php")
    Observable<WorkRatioBean> getWorkRatio(@Field("RequestType")String requestType);
}
